package com.zx.mobile.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by IntelliJ IDEA. User: Administrator Date: 15-7-5 Time: 下午8:09 To
 * change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/mobile/index")
public class MobileInsureController {
    /**
     * log
     */
    private static Logger log = Logger.getLogger(MobileInsureController.class);

    /**
     * 保险
     *
     * @param model
     * @param request
     * @return
     */
    @RequestMapping("/insure")
    public String insure(Model model, HttpServletRequest request) {
        try {
            return "/jsp/mobile/insure/index";
        } catch (Exception e) {
            model.addAttribute("errorMsg", "系统异常");
            log.error("系统异常", e);
            return "/jsp/mobile/error";
        }
    }

}
